<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/2/19
  Time: 0:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/bootstrap.min.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/bootstrap-theme.min.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/signin.css">
</head>
<body>
<div class="container">

    <form class="form-signin" action="${pageContext.request.contextPath}/registerServlet">
        <h2 class="form-signin-heading">注册页面</h2>
        <label for="username" class="sr-only">用户名</label>
        <input type="text" id="username" name="username" class="form-control" placeholder="username" required autofocus>
        <label for="password" class="sr-only">密码</label>
        <input type="password" id="password" name="password" class="form-control" placeholder="password" required>
        <button class="btn btn-lg btn-primary btn-block" type="submit">注册</button>
        <c:if test="${requestScope.register_err}">
            <div class="alert alert-warning" role="alert">${requestScope.register_err}</div>
        </c:if>
    </form>


</div> <!-- /container -->

</body>
</html>
